package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_topic table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_topic"
 */

public abstract class BaseCnTopic  implements Serializable {

	public static String REF = "CnTopic";
	public static String PROP_TYPE = "Type";
	public static String PROP_OBJID = "Objid";
	public static String PROP_PLNUM = "Plnum";
	public static String PROP_ACTUSERS = "Actusers";
	public static String PROP_KEYWORDS = "Keywords";
	public static String PROP_USERID = "Userid";
	public static String PROP_EXTRA = "Extra";
	public static String PROP_ZFCONT = "Zfcont";
	public static String PROP_ZFID = "Zfid";
	public static String PROP_ZFNUM = "Zfnum";
	public static String PROP_CONTENT = "Content";
	public static String PROP_PIC = "Pic";
	public static String PROP_ID = "Id";
	public static String PROP_POSTTIME = "Posttime";
	public static String PROP_FLAG = "Flag";


	// constructors
	public BaseCnTopic () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnTopic (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String userid;
	private java.lang.String content;
	private java.lang.String pic;
	private java.lang.String extra;
	private java.lang.String zfid;
	private java.lang.String zfcont;
	private java.lang.String objid;
	private java.lang.String type;
	private java.util.Date posttime;
	private java.lang.Integer plnum;
	private java.lang.Integer zfnum;
	private java.lang.String keywords;
	private java.lang.String actusers;
	private java.lang.String flag;


	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}


	public java.lang.String getPic() {
		return pic;
	}

	public void setPic(java.lang.String pic) {
		this.pic = pic;
	}

	/**
	 * Return the value associated with the column: EXTRA
	 */
	public java.lang.String getExtra () {
		return extra;
	}

	/**
	 * Set the value related to the column: EXTRA
	 * @param extra the EXTRA value
	 */
	public void setExtra (java.lang.String extra) {
		this.extra = extra;
	}



	/**
	 * Return the value associated with the column: ZFID
	 */
	public java.lang.String getZfid () {
		return zfid;
	}

	/**
	 * Set the value related to the column: ZFID
	 * @param zfid the ZFID value
	 */
	public void setZfid (java.lang.String zfid) {
		this.zfid = zfid;
	}



	/**
	 * Return the value associated with the column: ZFCONT
	 */
	public java.lang.String getZfcont () {
		return zfcont;
	}

	/**
	 * Set the value related to the column: ZFCONT
	 * @param zfcont the ZFCONT value
	 */
	public void setZfcont (java.lang.String zfcont) {
		this.zfcont = zfcont;
	}



	/**
	 * Return the value associated with the column: OBJID
	 */
	public java.lang.String getObjid () {
		return objid;
	}

	/**
	 * Set the value related to the column: OBJID
	 * @param objid the OBJID value
	 */
	public void setObjid (java.lang.String objid) {
		this.objid = objid;
	}



	/**
	 * Return the value associated with the column: TYPE
	 */
	public java.lang.String getType () {
		return type;
	}

	/**
	 * Set the value related to the column: TYPE
	 * @param type the TYPE value
	 */
	public void setType (java.lang.String type) {
		this.type = type;
	}



	/**
	 * Return the value associated with the column: POSTTIME
	 */
	public java.util.Date getPosttime () {
		return posttime;
	}

	/**
	 * Set the value related to the column: POSTTIME
	 * @param posttime the POSTTIME value
	 */
	public void setPosttime (java.util.Date posttime) {
		this.posttime = posttime;
	}



	/**
	 * Return the value associated with the column: PLNUM
	 */
	public java.lang.Integer getPlnum () {
		return plnum;
	}

	/**
	 * Set the value related to the column: PLNUM
	 * @param plnum the PLNUM value
	 */
	public void setPlnum (java.lang.Integer plnum) {
		this.plnum = plnum;
	}



	/**
	 * Return the value associated with the column: ZFNUM
	 */
	public java.lang.Integer getZfnum () {
		return zfnum;
	}

	/**
	 * Set the value related to the column: ZFNUM
	 * @param zfnum the ZFNUM value
	 */
	public void setZfnum (java.lang.Integer zfnum) {
		this.zfnum = zfnum;
	}



	/**
	 * Return the value associated with the column: KEYWORDS
	 */
	public java.lang.String getKeywords () {
		return keywords;
	}

	/**
	 * Set the value related to the column: KEYWORDS
	 * @param keywords the KEYWORDS value
	 */
	public void setKeywords (java.lang.String keywords) {
		this.keywords = keywords;
	}



	/**
	 * Return the value associated with the column: ACTUSERS
	 */
	public java.lang.String getActusers () {
		return actusers;
	}

	/**
	 * Set the value related to the column: ACTUSERS
	 * @param actusers the ACTUSERS value
	 */
	public void setActusers (java.lang.String actusers) {
		this.actusers = actusers;
	}


	public java.lang.String getFlag() {
		return flag;
	}

	public void setFlag(java.lang.String flag) {
		this.flag = flag;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnTopic)) return false;
		else {
			com.lovejes.cuniao.domain.CnTopic cnTopic = (com.lovejes.cuniao.domain.CnTopic) obj;
			if (null == this.getId() || null == cnTopic.getId()) return false;
			else return (this.getId().equals(cnTopic.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}